tinyMCE.init({
		// General options
			mode : "textareas",
			theme : "advanced",
			plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",
			width: "200",
			// Theme options
			theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
			theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,|,forecolor,backcolor",
			theme_advanced_toolbar_location : "top",
			theme_advanced_toolbar_align : "left",
			theme_advanced_statusbar_location : "bottom",
			theme_advanced_resizing : true,

		// Replace values for the template plugin
			template_replace_values : {
				username : "Some User",
				staffid : "991234"
			}
});

function confirmDeleteContents(){
	var message = "";
	
	$("#content-edit-list :checkbox").each(function(){
		if(this.checked == true){
			var articleTitle = $("#content-title-"+this.value).html();
			message = message + "<p><strong>" + articleTitle + "</strong></p>";	
		}
	});
	
	var previousContent = $("#content-delete-confirm").html();
	
	$("#content-delete-confirm").html(previousContent+message);
	
	$("#content-delete-confirm").dialog({
			autoOpen : true,
			width: 400,
			buttons: {
				"Yes" : function(){
					$("#contentDeleteList").submit();
					$(this).dialog("close");
				},
				"No" : function(){
					userConfirms = "no";
					$(this).dialog("close");
				}
			},
			modal : true
		});
		
		if($("#content-delete-confirm").dialog("isOpen") == false){
			message = "";
			$("#content-delete-confirm").dialog("open");
		}
		
	return true;
}